<!--{subtemplate jameson_read:touch/header}-->
<div class="searchwrap">
  <div class="search_left">
    <a href="javascript:history.go(-1);">
      <i class="fa fa-fw fa-chevron-left"></i>
    </a>
    <a href="javascript:;" class="open-popup" data-target="#bottomtab">
        <i class="fa fa-fw fa-bars"></i>
      </a>
  </div>
  <div class="search_right">
    <div class="weui-search-bar" id="searchBar">
      <form class="weui-search-bar__form" action="./plugin.php">
        <div class="weui-search-bar__box">
          <i class="weui-icon-search"></i>
          <input type="search" class="weui-search-bar__input" id="searchInput" placeholder="{lang jameson_read:qsrsmsstouch}"  autofocus name="keyword">
          <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
        </div>
        <label class="weui-search-bar__label" id="searchText">
          <i class="weui-icon-search"></i>
          <span>
          <!--{lang jameson_read:sousuo}-->
          </span>
        </label>
        <input type="hidden" name="id" value="jameson_read:jameson_read">
        <input type="hidden" name="contrl" value="touch">
        <input type="hidden" name="act" value="search">
      </form>
      <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">
      <!--{lang jameson_read:quxiao}-->
      </a>
    </div>
  </div>
</div>
<div class="weui-panel weui-panel_access">
  <!--{if $keyword}-->
    <div class="weui-panel__hd weui-media-box__title">
        ({lang jameson_read:shuming} | 
        {lang jameson_read:zuozhe}  |
        {lang jameson_read:biaoqian})
        {lang jameson_read:baohan} 
        <strong class="text-danger"><!--{$keyword}--></strong>
      {lang jameson_read:de}{lang jameson_read:tushu} <strong class="text-danger">{$counts}</strong>
    </div>
  <!--{elseif $_G['jameson_read']['resou'] || $hotkey}-->
    <div class="weui-panel__hd noafter weui-media-box__title">
    <!--{lang jameson_read:remensousuo}-->
    </div>
    <div class="weui-panel__bd btn-no-bor text-justify">
        <!--{loop $_G['jameson_read']['resou']  $word}-->
        <a class=" weui-btn_default weui-btn_mini" href="./plugin.php?id=jameson_read&contrl=touch&act=search&keyword={$word}">
            <!--{$word}-->
        </a>
        <!--{/loop}-->
        <!--{loop $hotkey  $word}-->
        <a class=" weui-btn_default weui-btn_mini" href="./plugin.php?id=jameson_read&contrl=touch&act=search&keyword={$word['keyword']}">
            <!--{$word['keyword']}-->
        </a>
        <!--{/loop}-->
    </div>
  <!--{/if}-->
  <!--{if $books}-->
  <div class="weui-panel__bd">
  <!--{loop $books $key $book}-->
      <a href="{eval echo mbreurl('book',$book['book_id']);}" class="weui-media-box weui-media-box_appmsg">
        <div class="weui-media-box__hd">
          <img class="weui-media-box__thumb" src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
        </div>
        <div class="weui-media-box__bd">
          <h4 class="weui-media-box__title">
          <!--{$book['book_name']}-->
          </h4>
          <p class="weui-media-box__desc">
          <!--{$book['desco']}-->
          </p>
          <p class="weui-media-box__desc cl listmeta"> 
            <span class="z">
            <!--{$book['author']}-->
            </span>
            <span  class="y">
            <!--{$book['category_name']}-->
            </span>
          </p>
        </div>
      </a>
    <!--{/loop}-->
    </div>
  <!--{/if}-->
    <div class="weui-panel__ft">
          <div class="weui-cell__bd">
            <div class="weui-flex">
              <!--{if $books}-->
              <!--{$pageshow}-->
              <!--{elseif $keyword}-->
              <h2 class="weui-cells__title">
              <!--{lang jameson_read:zanwujilu}-->
              </h2>
              <!--{/if}-->
            </div>
          </div>
          <span class="weui-cell__ft"></span>
    </div>
</div>

<div class="weui-panel weui-panel_access none btn-no-bor" id="searchhistory">
  <div class="weui-panel__hd noafter weui-media-box__title">
  <!--{lang jameson_read:sousuolishi}-->
  </div>
  <div class="weui-panel__bd text-justify"></div>
    <div class="weui-panel__ft text-center">
             <a href="javascript:;" onclick="jameson.clearhistory()" class="weui-btn weui-btn_default weui-btn_mini">
             <!--{lang jameson_read:qingchu}-->
             <!--{lang jameson_read:sousuolishi}-->
             </a>
    </div>
</div>

<!--{if $indexadv[0]['adv']}-->
<div class="weui-panel weui-media-box zdyadv">
  <div class="weui-panel__bd">
    <!--{eval echo stripcslashes($indexadv[0]['adv']);}-->
  </div>
</div>
<!--{/if}-->
<!--{subtemplate jameson_read:touch/footer}-->